cgi escape doc file uris before trying to download