title: Encoding issues with python's etree.tostring
body: <p>I'm using python 2.6.2's xml.etree.cElementTree to create an xml document:</p>
  
  <pre><code>import xml.etree.cElementTree as etree
  elem = etree.Element('tag')
  elem.text = (u"Würth Elektronik Midcom").encode('utf-8')
  xml = etree.tostring(elem,encoding='UTF-8')
  </code></pre>
  
  <p>At the end of the day, xml looks like:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;tag&gt;W&amp;#195;&amp;#188;rth Elektronik Midcom&lt;/tag&gt;
  </code></pre>
  
  <p>It looks like tostring ignored the encoding parameter and encoded 'ü' into some other character encoding ('ü' is a valid utf-8 encoding, I'm fairly sure).  </p>
  
  <p>Any advice as to what I'm doing wrong would be greatly appreciated.</p>