title: decode querystring within context.Request
body: <p>i have an ashx file that requires some query-string values to deliver appropriate images.</p>
  
  <p>The problem is some search engines urlencode then htmlencode those urls in their cache or when they index those.</p>
  
  <p>So for example instead of getting</p>
  
  <pre><code>/preview.ashx?file=abcd.jpg&amp;root=small
  </code></pre>
  
  <p>i get</p>
  
  <pre><code>/preview.ashx?file=abcd.jpg&amp;amp;root=small
  </code></pre>
  
  <p>this basically throws off the <code>context.Request.QueryString["root"]</code> so it thinks that there's no variable <strong>root</strong></p>
  
  <p>i guess the second key in the querystring is <strong>amp;root</strong>  i.e the part after the &amp; sign.</p>
  
  <p>What i'm wondering is if there's a way to automatically html and urldecode the querystring on serverside so that the program doesn't get confused.</p>