[libvirt PATCH v4 04/11] remote: split out function for parsing URI scheme