Fix to parse URL with spaces properly.