Return error when unable to create a file path from url.
Merge pull request #3284 from glennw/file-loader-fix

Return error when unable to create a file path from url.