base64 newline error fixed