Fix handling of IPv6 addresses in the Host header.