title: Decoding UTF-8 URL in Python
body: <p>I have a string like "pe%20to%C5%A3i%20mai". When I apply urllib.parse.unquote to it, I get "pe to\u0163i mai". If I try to write this to a file, I get those exact simbols, not the expected glyph. </p>
  
  <p>How can I transform the string to utf-8 so in the file I have the proper glyph instead?</p>
  
  <p>Edit: I'm using Python 3.2</p>
  
  <p>Edit2: So I figured out that the <code>urllib.parse.unquote</code> was working correctly, and my problem actually is that I'm serializing to YAML with <code>yaml.dump</code> and that seems to screw things up. Why?</p>