Support IPv6 addresses in URI and Host header.