diff --git a/src/urllib3/util/url.py b/src/urllib3/util/url.py
index eba42058..9675f742 100644
--- a/src/urllib3/util/url.py
+++ b/src/urllib3/util/url.py
@@ -50,7 +50,7 @@ _variations = [
     "(?:(?:%(hex)s:){0,6}%(hex)s)?::",
 ]
 
-UNRESERVED_PAT = r"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._!\-"
+UNRESERVED_PAT = r"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._!\-~"
 IPV6_PAT = "(?:" + "|".join([x % _subs for x in _variations]) + ")"
 ZONE_ID_PAT = "(?:%25|%)(?:[" + UNRESERVED_PAT + "]|%[a-fA-F0-9]{2})+"
 IPV6_ADDRZ_PAT = r"\[" + IPV6_PAT + r"(?:" + ZONE_ID_PAT + r")?\]"
@@ -63,17 +63,18 @@ IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT + "$")
 BRACELESS_IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT[2:-2] + "$")
 ZONE_ID_RE = re.compile("(" + ZONE_ID_PAT + r")\]$")
 
-SUBAUTHORITY_PAT = (u"^(?:(.*)@)?" u"(%s|%s|%s)" u"(?::([0-9]{0,5}))?$") % (
+SUBAUTHORITY_PAT = (u"^(?:(.*)@)?(%s|%s|%s)(?::([0-9]{0,5}))?$") % (
     REG_NAME_PAT,
     IPV4_PAT,
     IPV6_ADDRZ_PAT,
 )
 SUBAUTHORITY_RE = re.compile(SUBAUTHORITY_PAT, re.UNICODE | re.DOTALL)
 
-ZONE_ID_CHARS = set(
-    "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789._!-"
+UNRESERVED_CHARS = set(
+    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~"
 )
-USERINFO_CHARS = ZONE_ID_CHARS | set("$&'()*+,;=:")
+SUB_DELIM_CHARS = set("!$&'()*+,;=")
+USERINFO_CHARS = UNRESERVED_CHARS | SUB_DELIM_CHARS | {":"}
 PATH_CHARS = USERINFO_CHARS | {"@", "/"}
 QUERY_CHARS = FRAGMENT_CHARS = PATH_CHARS | {"?"}
 
@@ -290,7 +291,7 @@ def _normalize_host(host, scheme):
                         zone_id = zone_id[3:]
                     else:
                         zone_id = zone_id[1:]
-                    zone_id = "%" + _encode_invalid_chars(zone_id, ZONE_ID_CHARS)
+                    zone_id = "%" + _encode_invalid_chars(zone_id, UNRESERVED_CHARS)
                     return host[:start].lower() + zone_id + host[end:]
                 else:
                     return host.lower()

diff --git a/test/test_util.py b/test/test_util.py
index 73fad715..42c38824 100644
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -170,6 +170,10 @@ class TestUtil(object):
         "url, expected_normalized_url",
         [
             ("HTTP://GOOGLE.COM/MAIL/", "http://google.com/MAIL/"),
+            (
+                "http://user@domain.com:password@example.com/~tilde@?@",
+                "http://user%40domain.com:password@example.com/~tilde@?@",
+            ),
             (
                 "HTTP://JeremyCline:Hunter2@Example.com:8080/",
                 "http://JeremyCline:Hunter2@example.com:8080/",

Tilde characters encoded in URLs starting in 1.25.4
Release 1.25.4 has a behavior change due to #1673 -- tilde characters in URLs are now percent-encoded.  Some remote systems may not decode path components if they are not expecting any input other than unreserved characters.  In such cases, this behavior change may cause user-visible errors.

test/test_util.py::TestUtil::test_parse_url_normalization[http://user@domain.com:password@example.com/~tilde@?@-http://user%40domain.com:password@example.com/~tilde@?@]
test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x02] test/test_util.py::TestUtil::test_has_ipv6_disabled_on_appengine test/test_util.py::TestUtil::test_get_host[http://www.google.com-expected_host5] test/test_util.py::TestUtil::test_parse_url[http://foo:bar@localhost/-expected_url19] test/test_util.py::TestUtil::test_parse_url[#-expected_url23] test/test_util.py::TestUtil::test_unparse_url[-expected_url7] test/test_util.py::TestUtil::test_request_uri[/foo?bar=baz-/foo?bar=baz] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x0f] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x03] test/test_util.py::TestUtil::test_invalid_timeouts[kwargs2-less test/test_util.py::TestUtil::test_url_vulnerabilities[//google.com/a/b/c-expected_url4] test/test_util.py::TestUtil::test_parse_url[http://user@email.com:password@example.com/-expected_url28] test/test_util.py::TestUtil::test_split_first[input1-expected1] test/test_util.py::TestUtil::test_parse_url[http://google.com:/-expected_url26] test/test_util.py::TestUtil::test_invalid_timeouts[kwargs0-less test/test_util.py::TestUtil::test_unparse_url[http://google.com/-expected_url4] test/test_util.py::TestUtil::test_is_fp_closed_object_has_none_fp test/test_util.py::TestUtil::test_parse_url_normalization[http://google.com/p%5B%5d?parameter%5b%5D=%22hello%22#fragment%23-http://google.com/p%5B%5D?parameter%5B%5D=%22hello%22#fragment%23] test/test_util.py::TestUtil::test_parse_url[http://google.com/-expected_url14] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x1c] test/test_util.py::TestUtil::test_get_host[http://[1080::8:800:200c:417a]/foo-expected_host28] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x14] test/test_util.py::TestUtil::test_url_vulnerabilities[http://google.com/\uff2e\uff2e/abc-expected_url2] test/test_util.py::TestUtil::test_parse_url_normalization[[::1%25]-[::1%25]] test/test_util.py::TestUtil::test_get_host[http://[::192.9.5.5]/ipng-expected_host29] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x10] test/test_util.py::TestUtil::test_unparse_url[/foo?bar=baz-expected_url11] test/test_util.py::TestUtil::test_parse_url[http://foo:bar@localhost/-expected_url20] test/test_util.py::TestUtil::test_parse_url[#?/!google.com/?foo-expected_url9] test/test_util.py::TestUtil::test_unparse_url[#?/!google.com/?foo-expected_url9] test/test_util.py::TestUtil::test_parse_url_normalization[HTTP://GOOGLE.COM/MAIL/-http://google.com/MAIL/] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x19] test/test_util.py::TestUtil::test_get_host[http+UNIX://%2fvar%2frun%2fSOCKET/path-expected_host42] test/test_util.py::TestUtil::test_resolve_ssl_version[_SSLMethod.PROTOCOL_TLSv1-_SSLMethod.PROTOCOL_TLSv1] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\r] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x04] test/test_util.py::TestUtil::test_parse_url[http://google.com:80/-expected_url15] test/test_util.py::TestUtil::test_get_host[google.com/mail-expected_host2] test/test_util.py::TestUtil::test_split_first[input5-expected5] test/test_util.py::TestUtil::test_url_vulnerabilities[http://\u30d2:\u30ad@\u30d2.abc.\u30cb/\u30d2?\u30ad#\u30ef-expected_url5] test/test_util.py::TestUtil::test_get_host[173.194.35.7-expected_host36] test/test_util.py::TestUtil::test_parse_and_normalize_url_paths[/..-expected_url1] test/test_util.py::TestUtil::test_unparse_url[http://google.com/mail/-expected_url1] test/test_util.py::TestUtil::test_get_host[HTTP://GoOgLe.CoM:8000/mail/-expected_host34] test/test_util.py::TestUtil::test_netloc[http://google.com:80/mail-google.com:80] test/test_util.py::TestUtil::test_request_uri[http://google.com/-/] test/test_util.py::TestUtil::test_parse_url[http://foo:bar@localhost/-expected_url21] test/test_util.py::TestUtil::test_get_host[http://google.com-expected_host4] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x1a] test/test_util.py::TestUtil::test_rewind_body test/test_util.py::TestUtil::test_timeout test/test_util.py::TestUtil::test_resolve_ssl_version[_SSLMethod.PROTOCOL_TLS-_SSLMethod.PROTOCOL_TLS] test/test_util.py::TestUtil::test_parse_url[http://google.com/mail-expected_url0] test/test_util.py::TestUtil::test_parse_url[http://foo@localhost/-expected_url18] test/test_util.py::TestUtil::test_parse_url_invalid_IPv6 test/test_util.py::TestUtil::test_make_headers[kwargs6-expected6] test/test_util.py::TestUtil::test_netloc[http://google.com/mail-google.com] test/test_util.py::TestUtil::test_netloc[google.com:12345-google.com:12345] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x16] test/test_util.py::TestUtil::test_make_headers[kwargs10-expected10] test/test_util.py::TestUtil::test_invalid_url[http://\ud7ff.com] test/test_util.py::TestUtil::test_parse_url[?-expected_url22] test/test_util.py::TestUtil::test_make_headers[kwargs3-expected3] test/test_util.py::TestUtil::test_parse_and_normalize_url_paths[/abc/../def-expected_url0] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x1b] test/test_util.py::TestUtil::test_rewind_body_bad_position test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x12] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x15] test/test_util.py::TestUtil::test_rewind_body_failed_seek test/test_util.py::TestUtil::test_unparse_url[http://google.com:80-expected_url16] test/test_util.py::TestUtil::test_unparse_url[/foo?bar=baz#banana?apple/orange-expected_url12] test/test_util.py::TestUtil::test_parse_url_bytes_type_error_python_3 test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x0e] test/test_util.py::TestUtil::test_get_host[HTTP://user:password@EXAMPLE.COM:1234-expected_host35] test/test_util.py::TestUtil::test_get_host[http://173.194.35.7:80/test-expected_host19] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x11] test/test_util.py::TestUtil::test_parse_url[/abc/../def-expected_url24] test/test_util.py::TestUtil::test_parse_and_normalize_url_paths[/./abc/./def/-expected_url2] test/test_util.py::TestUtil::test_get_host[http://google.com/mail-expected_host0] test/test_util.py::TestUtil::test_parse_url[/foo-expected_url10] test/test_util.py::TestUtil::test_get_host[[2a00:1450:4001:c01::67]-expected_host20] test/test_util.py::TestUtil::test_make_headers[kwargs1-expected1] test/test_util.py::TestUtil::test_invalid_host[http://google.com:\xb2\xb2] test/test_util.py::TestUtil::test_timeout_elapsed test/test_util.py::TestUtil::test_parse_url[/foo?bar=baz-expected_url11] test/test_util.py::TestUtil::test_url_vulnerabilities[http://google.com#@evil.com/-expected_url0] test/test_util.py::TestUtil::test_unparse_url[http://foo@localhost/-expected_url18] test/test_util.py::TestUtil::test_parse_url[http://google.com/\ud800-expected_url30] test/test_util.py::TestUtil::test_get_host[http://173.194.35.7-expected_host16] test/test_util.py::TestUtil::test_request_uri[http://google.com/mail-/mail] test/test_util.py::TestUtil::test_url_vulnerabilities[javascript:a='@google.com:12345/';alert(0)-expected_url3] test/test_util.py::TestUtil::test_has_ipv6_enabled_but_fails test/test_util.py::TestUtil::test_parse_url[http://google.com:-expected_url25] test/test_util.py::TestUtil::test_make_headers[kwargs8-expected8] test/test_util.py::TestUtil::test_parse_url[http://google.com-expected_url5] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x05] test/test_util.py::TestUtil::test_make_headers[kwargs2-expected2] test/test_util.py::TestUtil::test_request_uri[-/] test/test_util.py::TestUtil::test_get_host[http://mail.google.com-expected_host6] test/test_util.py::TestUtil::test_invalid_timeouts[kwargs4-cannot test/test_util.py::TestUtil::test_unparse_url[google.com/mail-expected_url3] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x18] test/test_util.py::TestUtil::test_invalid_timeouts[kwargs5-less test/test_util.py::TestUtil::test_resolve_cert_reqs[VerifyMode.CERT_NONE-VerifyMode.CERT_NONE] test/test_util.py::TestUtil::test_parse_url[google.com/mail-expected_url3] test/test_util.py::TestUtil::test_unparse_url[http://google.com/-expected_url14] test/test_util.py::TestUtil::test_unparse_url[http://foo:bar@localhost/-expected_url20] test/test_util.py::TestUtil::test_resolve_cert_reqs[REQUIRED-VerifyMode.CERT_REQUIRED] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\n] test/test_util.py::TestUtil::test_assert_header_parsing_throws_typeerror_with_non_headers[None] test/test_util.py::TestUtil::test_has_ipv6_enabled_and_working test/test_util.py::TestUtil::test_get_host[GOogle.COM/mail-expected_host33] test/test_util.py::TestUtil::test_request_uri[http://google.com-/] test/test_util.py::TestUtil::test_unparse_url[http://google.com:80/-expected_url15] test/test_util.py::TestUtil::test_has_ipv6_disabled_on_compile test/test_util.py::TestUtil::test_Url_str test/test_util.py::TestUtil::test_request_uri[/-/] test/test_util.py::TestUtil::test_invalid_timeouts[kwargs6-int, test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x1f] test/test_util.py::TestUtil::test_parse_url[/foo?bar=baz#banana?apple/orange-expected_url12] test/test_util.py::TestUtil::test_make_headers[kwargs9-expected9] test/test_util.py::TestUtil::test_make_headers[kwargs7-expected7] test/test_util.py::TestUtil::test_get_host[http://[2a00:1450:4001:c01::67]-expected_host21] test/test_util.py::TestUtil::test_get_host[HTTP://[2a00:1450:4001:c01::67]:80/test-expected_host38] test/test_util.py::TestUtil::test_resolve_cert_reqs[CERT_REQUIRED-VerifyMode.CERT_REQUIRED] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x13] test/test_util.py::TestUtil::test_invalid_timeouts[kwargs1-less test/test_util.py::TestUtil::test_unparse_url[http://google.com-expected_url5] test/test_util.py::TestUtil::test_get_host[http://google.com/foo=http://bar:42/baz-expected_host12] test/test_util.py::TestUtil::test_parse_url[http://google.com/-expected_url4] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x00] test/test_util.py::TestUtil::test_unparse_url[/redirect?target=http://localhost:61020/-expected_url13] test/test_util.py::TestUtil::test_rewind_body_failed_tell test/test_util.py::TestUtil::test_parse_url_negative_port test/test_util.py::TestUtil::test_parse_url_normalization[http://user:pass@[AaAa::Ff%25etH0%Ff]/%ab%Af-http://user:pass@[aaaa::ff%etH0%FF]/%AB%AF] test/test_util.py::TestUtil::test_url_vulnerabilities[10.251.0.83:7777?a=1 test/test_util.py::TestUtil::test_get_host[HTTP://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:8000/index.html-expected_host39] test/test_util.py::TestUtil::test_unparse_url[http://foo:bar@localhost/-expected_url17] test/test_util.py::TestUtil::test_ip_family_ipv6_disabled test/test_util.py::TestUtil::test_netloc[google.com/foobar-google.com] test/test_util.py::TestUtil::test_get_host[http://[3ffe:2a00:100:7031::1]-expected_host27] test/test_util.py::TestUtil::test_invalid_host[http://::1:80/] test/test_util.py::TestUtil::test_get_host[http://[1080:0:0:0:8:800:200c:417a]/index.html-expected_host26] test/test_util.py::TestUtil::test_unparse_url[/-expected_url8] test/test_util.py::TestUtil::test_get_host[http://google.com/-expected_host3] test/test_util.py::TestUtil::test_unparse_url[/foo-expected_url10] test/test_util.py::TestUtil::test_unparse_url[http://google.com/mail-expected_url2] test/test_util.py::TestUtil::test_invalid_timeouts[kwargs3-cannot test/test_util.py::TestUtil::test_get_host[http://[::ffff:129.144.52.38]:42/index.html-expected_host30] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[ test/test_util.py::TestUtil::test_get_host[abOut://eXamPlE.com?info=1-expected_host41] test/test_util.py::TestUtil::test_get_host[http://google.com/mail/-expected_host1] test/test_util.py::TestUtil::test_get_host[http://[fedc:ba98:7654:3210:fedc:ba98:7654:3210]:8000/index.html-expected_host25] test/test_util.py::TestUtil::test_url_vulnerabilities[http://127.0.0.1:6379?\r\nSET test/test_util.py::TestUtil::test_parse_url[http://google.com?foo-expected_url6] test/test_util.py::TestUtil::test_parse_url_normalization[http://google.com/p[]?parameter[]="hello"#fragment#-http://google.com/p%5B%5D?parameter%5B%5D=%22hello%22#fragment%23] test/test_util.py::TestUtil::test_add_stderr_logger test/test_util.py::TestUtil::test_parse_url[http://google.com/mail/-expected_url1] test/test_util.py::TestUtil::test_parse_url[-expected_url7] test/test_util.py::TestUtil::test_assert_header_parsing_throws_typeerror_with_non_headers[object] test/test_util.py::TestUtil::test_invalid_url[http://\u2764\ufe0f] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x7f] test/test_util.py::TestUtil::test_ssl_wrap_socket_with_no_sni_warns test/test_util.py::TestUtil::test_ssl_wrap_socket_creates_new_context test/test_util.py::TestUtil::test_get_host[HTTP://173.194.35.7-expected_host37] test/test_util.py::TestUtil::test_get_host[http://google.com:8000-expected_host8] test/test_util.py::TestUtil::test_unparse_url[http://google.com/mail-expected_url0] test/test_util.py::TestUtil::test_disable_warnings test/test_util.py::TestUtil::test_parse_url[http://google.com/mail-expected_url2] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x0b] test/test_util.py::TestUtil::test_get_host[http://[2a00:1450:4001:c01::67]:80-expected_host23] test/test_util.py::TestUtil::test_get_host[http://[2a00:1450:4001:c01::67]/test-expected_host22] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x1e] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x06] test/test_util.py::TestUtil::test_get_host[http://google.com?foo=http://bar:42/baz-expected_host13] test/test_util.py::TestUtil::test_get_host[http://173.194.35.7/test-expected_host17] test/test_util.py::TestUtil::test_request_uri[http://google.com/mail/-/mail/] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x1d] test/test_util.py::TestUtil::test_ssl_wrap_socket_loads_the_cert_chain test/test_util.py::TestUtil::test_parse_url_normalization[[::Ff%etH0%Ff]/%ab%Af-[::ff%etH0%FF]/%AB%AF] test/test_util.py::TestUtil::test_get_host[https://google.com-expected_host9] test/test_util.py::TestUtil::test_parse_url_normalization[HTTPS://Example.Com/?Key=Value-https://example.com/?Key=Value] test/test_util.py::TestUtil::test_get_host[https://google.com:8000-expected_host10] test/test_util.py::TestUtil::test_const_compare_digest_fallback test/test_util.py::TestUtil::test_get_host[http://[2010:836b:4179::836b:4179]-expected_host31] test/test_util.py::TestUtil::test_resolve_cert_reqs[None-VerifyMode.CERT_REQUIRED] test/test_util.py::TestUtil::test_parse_url[/redirect?target=http://localhost:61020/-expected_url13] test/test_util.py::TestUtil::test_invalid_host[http://google.com:foo] test/test_util.py::TestUtil::test_parse_url_normalization[HTTP://JeremyCline:Hunter2@Example.com:8080/-http://JeremyCline:Hunter2@example.com:8080/] test/test_util.py::TestUtil::test_resolve_cert_reqs[VerifyMode.CERT_REQUIRED-VerifyMode.CERT_REQUIRED] test/test_util.py::TestUtil::test_unparse_url[http://foo:bar@localhost/-expected_url19] test/test_util.py::TestUtil::test_split_first[input3-expected3] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\t] test/test_util.py::TestUtil::test_get_host[http://[2a00:1450:4001:c01::67]:80/test-expected_host24] test/test_util.py::TestUtil::test_invalid_url[http://\udc00.com] test/test_util.py::TestUtil::test_request_uri[?-/?] test/test_util.py::TestUtil::test_get_host[173.194.35.7-expected_host15] test/test_util.py::TestUtil::test_timeout_str test/test_util.py::TestUtil::test_parse_url_normalization[Https://Example.Com/#Fragment-https://example.com/#Fragment] test/test_util.py::TestUtil::test_invalid_host[http://::1/] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x01] test/test_util.py::TestUtil::test_ssl_wrap_socket_loads_verify_locations test/test_util.py::TestUtil::test_is_fp_closed_object_has_neither_fp_nor_closed test/test_util.py::TestUtil::test_make_headers[kwargs5-expected5] test/test_util.py::TestUtil::test_request_uri[#-/] test/test_util.py::TestUtil::test_get_host[http://user:password@127.0.0.1:1234-expected_host11] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x08] test/test_util.py::TestUtil::test_invalid_url[http://\ud800.com] test/test_util.py::TestUtil::test_unparse_url[http://foo:bar@localhost/-expected_url21] test/test_util.py::TestUtil::test_parse_url[http://google.com:80-expected_url16] test/test_util.py::TestUtil::test_split_first[input0-expected0] test/test_util.py::TestUtil::test_parse_and_normalize_url_paths[/.-expected_url3] test/test_util.py::TestUtil::test_parse_url[http://user":quoted@example.com/-expected_url29] test/test_util.py::TestUtil::test_get_host[http://google.com#foo=http://bar:42/baz-expected_host14] test/test_util.py::TestUtil::test_parse_url[http://foo:bar@localhost/-expected_url17] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x17] test/test_util.py::TestUtil::test_split_first[input4-expected4] test/test_util.py::TestUtil::test_split_first[input2-expected2] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x0c] test/test_util.py::TestUtil::test_parse_url[http://google.com#\udc00-expected_url32] test/test_util.py::TestUtil::test_ip_family_ipv6_enabled test/test_util.py::TestUtil::test_parse_url[http://K\xf6nigsg\xe4\xdfchen.de/stra\xdfe-expected_url27] test/test_util.py::TestUtil::test_invalid_host[http://google.com:-80] test/test_util.py::TestUtil::test_parse_url[/-expected_url8] test/test_util.py::TestUtil::test_resolve_ssl_version[PROTOCOL_TLSv1-_SSLMethod.PROTOCOL_TLSv1] test/test_util.py::TestUtil::test_control_characters_are_percent_encoded[\x07] test/test_util.py::TestUtil::test_ssl_wrap_socket_loads_certificate_directories test/test_util.py::TestUtil::test_unparse_url[http://google.com?foo-expected_url6] test/test_util.py::TestUtil::test_parse_url[http://google.com?q=\udc00-expected_url31] test/test_util.py::TestUtil::test_get_host[HTTPS://[1080:0:0:0:8:800:200c:417A]/index.html-expected_host40] test/test_util.py::TestUtil::test_assert_header_parsing_throws_typeerror_with_non_headers[foo] test/test_util.py::TestUtil::test_is_fp_closed_object_has_fp test/test_util.py::TestUtil::test_is_fp_closed_object_supports_closed test/test_util.py::TestUtil::test_parse_and_normalize_url_paths[/./-expected_url4] test/test_util.py::TestUtil::test_resolve_ssl_version[TLSv1-_SSLMethod.PROTOCOL_TLSv1] test/test_util.py::TestUtil::test_url_vulnerabilities[http://127.0.0.1%0d%0aConnection%3a%20keep-alive-expected_url1] test/test_util.py::TestUtil::test_get_host[HTTP://GOOGLE.COM/mail/-expected_host32] test/test_util.py::TestUtil::test_parse_and_normalize_url_paths[/abc/./.././d/././e/.././f/./../../ghi-expected_url5] test/test_util.py::TestUtil::test_get_host[http://google.com:8000/mail/-expected_host7] test/test_util.py::TestUtil::test_get_host[http://173.194.35.7:80-expected_host18]