sanitizes URIs with spaces