Convert URL to URI to fix problem with spaces converted to %20