Handle ios and android base64 encoding