fix an issue with binary file uploads on iOS