I've considered it, but to be honest; I don't know which is best. From a pure cleanliness point of view, we should. From a practial.. This way we get the URI cleaned.

For reference java.net.URI does what you suggest.

Should we, now that we know that git URI-encodes, use java.net.URI as much as possible and only wrap it to allow
for local name, scp and the broken file:(no extra slashes) syntax?