Fix iOS base64 NSData overflow