public static URI toURI(URL url) throws URISyntaxException {
        return toURI(url.toString());
    }
Create a URI instance for the given URL,
replacing spaces with "%20" URI encoding first.
<p>Furthermore, this method works on JDK 1.4 as well,
in contrast to the {@code URL.toURI()} method.

@param url the URL to convert into a URI instance
@return the URI instance
@throws URISyntaxException if the URL wasn't a valid URI
@see java.net.URL#toURI()
src/main/java/spark/utils/ResourceUtils.java