Fix bug with spaces in url