Fix prepend_scheme_if_needed by using urllib3.util.parse_url