title: UnicodeEncodeError when fetching URLs
body: <p>I am using urlfetch to fetch a URL. When I try to send it to html2text function (strips off all HTML tags), I get the following message:</p>
  
  <pre><code>UnicodeEncodeError: 'charmap' codec can't encode characters in position  ... character maps to &lt;undefined&gt;
  </code></pre>
  
  <p>I've been trying to process encode('UTF-8','ignore') on the string but I keep getting this error.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Joel</p>
  
  <hr>
  
  <p>Some Code:</p>
  
  <pre><code>result = urlfetch.fetch(url="http://www.google.com")
  html2text(result.content.encode('utf-8', 'ignore'))
  </code></pre>
  
  <p>And the error message:</p>
  
  <pre><code>File "C:\Python26\lib\encodings\cp1252.py", line 12, in encode
  return codecs.charmap_encode(input,errors,encoding_table)
  UnicodeEncodeError: 'charmap' codec can't encode characters in position 159-165: character maps to &lt;undefined&gt;
  </code></pre>