title: Filename has weird encoding when saving image
body: <p>I'm webscraping, and when I'm saving the image, it seems like the encoding is changed when saving the file. For instance, in the filename, <code>'é'</code> becomes <code>'%c3%a9'</code>. I'm capable of catching all these changes with this function:</p>
  <pre><code>def unify_filename(string):  
      return string.lower().strip().replace(',', '%2c').replace('%', '%25').replace('ô', '%b3%b4'). \
          replace('é', '%c3%a9').replace('++', '+').replace('è', '%c3%a8').replace('î', '%c3%ae'). \
          replace('#', '%23').replace(';', '%3b').replace('%2b%2b', '%2b'). \
          replace('&amp;', '%26').replace('+', '%2b').replace(' ', '+').replace('[', '%5b'). \
          replace(']', '%5d').replace('%2b', '+').replace('%40', '@').replace('®', '%c2%ae'). \
          replace('%7e', '').replace('~', '').replace('%27', '').replace('©', '%c2%a9'). \
          replace(&quot;'&quot;, '').replace('ô', '%b3%b4').replace('+', ' ').replace('^', '%5e'). \
          replace('$', '%24').replace('  ', ' ').replace('`', '%60').replace('’', '%e2%80%99')
  </code></pre>
  <p>Is there an easier way? Is this some encoding I don't know?</p>