cmFileCommand: Adopt `file://` URL compatibility helper

Migrate the helper back from `cmCurl` because its only remaining
functionality is specific to the `file(DOWNLOAD)` and `file(UPLOAD)`
commands.
3 files changed