Do not wrap lines in string encoded with base64 command
Use
-w0
switch for
base64
command:
echo -n "very_long_string" | base64 -w0