avoid superfluous newlines in base64 output