[libvirt PATCH v2 04/10] remote: split out function for parsing URI scheme