Escape spaces in URIs to make them parsable