Converts the specified file location to a URL.
When the passed string is a file pathname on the local system, it will be converted to a valid URL.
Example 1:
toURL("C:\\xml\\some.xsd")
"file:/C:/xml/some.xsd"
toURL("http://www.myorg.org/xml/some.xsd")
"http://www.myorg.org/xml/some.xml"
toURL("xml\\some.xsd")
"xml/some.xml"