Return string-ified UrlGenerator in FIle::getUrl

Ensure backwards compatibility with the getUrl interface by returning
the string version of the UrlGenerator.