MDL-41846 repository_url: Convert spaces to %20 in input url
MDL-41846 repository_url: Escape > < ' " in input url

And throw an exception when a url is incorrectly formatted