Support for file urls.
Added unit test to file-url pull request