There's a better way to do it. Terminals have a special escape sequence called OSC 52, which allows you to insert into the clipboard from even remote SSH sessions. Try this:
printf "\033]52;c;$(printf "%s" "blabla" | base64)\a"
printf "\033]52;c;$(printf "%s" "blabla" | base64)\a"
I have also considered trawling through the various terminal emulator source repos in order to know which are actually implemented (since that can for sure be a different set from those which are specified)