title: Howto allow "Illegal characters in path"?
body: <p>I have a MVC.NET application with one route as follows:</p>
  
  <p><code>routes.MapRoute("member", "member/{id}/{*name}", new { controller = "member", action = "Details", id = "" }, new { id = @"\d+" });</code></p>
  
  <p>Thus, a link could be something like this: <a href="http://domain/member/123/any_kind_of_username" rel="noreferrer">http://domain/member/123/any_kind_of_username</a></p>
  
  <p>This works fine in general but if the path contains illegal characters (e.g. a double qoute: <a href="http://domain/member/123/my_" rel="noreferrer">http://domain/member/123/my_</a>"user"_name) I get a "System.ArgumentException: Illegal characters in path."</p>
  
  <p>After much googling the best suggestions seems to be to make sure that the url doesn't contain any such characters. Unfortunately, that is out of my control in this case.</p>
  
  <p>Is there a way to work around this?</p>