Fixing Base64 whitespace issue