fixing spaces in urls