fix newline characters in b64 that cause barfs