accepts the url as a command line argument and fixes wrongly formed urls
v0.9