title: Encoding problem with C# utilising HttpWebRequest
body: <p>I am getting character codes (&amp;#39; and &ampquote;) that are breaking my responses (showing 39; and uto;) when returning a string from an HttpWebRequest:</p>
  
  <pre><code>internal static void TranslateThis(Player player, string fromLang, string toLang, string text){
      try
      {
          string translated = null;
          HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create("http://translate.google.com/?langpair=" + fromLang + "|" + toLang + "&amp;text=" + text.Replace(" ", "+") + "#");
          HttpWebResponse res = (HttpWebResponse)hwr.GetResponse();
          StreamReader sr = new StreamReader(res.GetResponseStream());
          string html = sr.ReadToEnd();
          int a = html.IndexOf("onmouseout=\"this.style.backgroundColor='#fff'\"&gt;") + 47;
          int b = html.IndexOf("&lt;/span&gt;",html.IndexOf("onmouseout=\"this.style.backgroundColor='#fff'\"&gt;") + 47);
          translated = html.Substring(a, b - a);
          if (translated.Length &lt; (10 * text.Length)){
              if (player == Player.Console)
              {
                  player.ParseMessage(translated, true);
              }
              else
              {
                  player.ParseMessage(translated, false);
              }
          } else {
              player.Message("Usage: /translate [lang] [message]");
          }
      }
      catch
      {
          player.Message("Usage: /translate [lang] [message]");
      }
  }
  </code></pre>