Fix upload of files from DocumentsProvider in Android > 4.4

This method may be useful in one of the Utils classes, as a public one.