SERVER-5436 improve ipv6 parsing in HostAndPort