No good. You're breaking the optimization I've done in #242: in the case of no proxy server, you have an URI, convert it into a String with getUrl, and then recreate an URI out of it.