Fix for empty filenames on iOS devices and wrong filenames on Android devices.