HTTPCLIENT-755: Workaround for known bugs in java.net.URI.resolve() (Bug ID: 4708535) Contributed by Johannes Koch <johannes.koch at fit.fraunhofer.de>