Fix for empty filenames for downloaded files on iOS devices and wrong filenames for downloaded files on Android de...

Filenames are not set properly for downloaded files, when using Filedownloader, on iOS and android devices. Tracked it down to this bug.