title: Filepaths containing ampersand (&) character
body: <p>I have an ASP.NET MVC web app which includes the facility for clients to upload/download documents from a folder on the server.</p>
  
  <p>I'm having a problem with people uploading file names containing an ampersand character (possibly other characters too, this is the only one I've discovered so far).</p>
  
  <p>The result is I'm getting javascript redirects looking something like:</p>
  
  <pre><code>window.location.href = 'MyController/DownloadDocument?filename=Dog &amp; Cat.pdf'; 
  </code></pre>
  
  <p>which obviously doesn't work.</p>
  
  <p>What's the easiest work around for something like this? Is there any way to escape the ampersand in the query string?</p>