fixing spaces in URLs