preserve enclosing brackets to ensure ipv6 lit hostname remains valid