public static URI toURI(String location) throws URISyntaxException {
        return new URI(StringUtils.replace(location, " ", "%20"));
    }
Create a URI instance for the given location String,
replacing spaces with "%20" URI encoding first.

@param location the location String to convert into a URI instance
@return the URI instance
@throws URISyntaxException if the location wasn't a valid URI
src/main/java/spark/utils/ResourceUtils.java