Fixed 404 errors when downloading URLs encoded using CGI::escape and improved error handling.
Fixed 404 errors when downloading URLs encoded using CGI::escape and improved error handling.