Asp.Net problem with %22 "Illegal characters in path."

Encoded quote (%22) in url path causes Illegal characters in path error

[ArgumentException: Illegal characters in path.]

System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) +14593253 System.IO.Path.GetFullPathInternal(String path) +132 System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) +115 System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) +265\

Error in return line

        internal static bool IsClientSideRequest(this Uri url)
    {
        var toIgnore = new[] { ".js", ".css", ".ico", ".png", ".jpg", ".jpeg", ".gif", ".html", ".svg" };
        return toIgnore.Any(x => Path.GetExtension(url.LocalPath).InvariantEquals(x));
    }

System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +151 System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path) +90 System.Web.InternalSecurityPermissions.PathDiscovery(String path) +40 System.Web.HttpRequest.get_PhysicalPath() +51 UrlRewritingNet.Web.UrlRewriteModule.OnBeginRequest(Object sender, EventArgs e) +80 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88