sanitizes repo urls which end in a slash.