copied FileTransfer.js from common/plugin
getBasicAuthHeader bugfix from apache/cordova-plugin-file-transfer@f92244aff9641dd3a287e7efe7f15344cec3db1c