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