public static URI resolve(final URI baseURI, final String reference) {
        return resolve(baseURI, URI.create(reference));
    }
Resolves a URI reference against a base URI. Work-around for bug in
java.net.URI (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4708535)

@param baseURI the base URI
@param reference the URI reference
@return the resulting URI
httpclient5/src/main/java/org/apache/hc/client5/http/utils/URIUtils.java