URI class now handles IPv6 hosts better