Don't use TLS by default (#8359)
Also unify the common code with a new rcube_utils::parse_host_uri() method