Escape spaces in URIs