Sanitise url for consumption on the shell