[libvirt PATCH 3/9] remote: split out function for parsing URI scheme