fix urls which has spaces in the paths (not the query string)