title: UnicodeEncodeError with nginx and django
body: <p>I've tried  <a href="https://stackoverflow.com/questions/3715865/unicodeencodeerror-ascii-codec-cant-encode-character">this SO answer</a>, <a href="https://docs.djangoproject.com/en/1.4/howto/deployment/modpython/#if-you-get-a-unicodeencodeerror" rel="nofollow noreferrer">this doc is inapplicable</a> as I'm running nginx, I've added <code>charset utf-8;</code> to my nginx config and I'm still getting this error. </p>
  
  <p>Summarised traceback is here:</p>
  
  <pre><code>UnicodeEncodeError at /
  
  'ascii' codec can't encode character u'\xe1' in position 69: ordinal not in range(128)
  
  
  Request Method:     GET
  Request URL:    http://django/
  Django Version:     1.4.20
  Exception Type:     UnicodeEncodeError
  Exception Value:    
  
  'ascii' codec can't encode character u'\xe1' in position 69: ordinal not in range(128)
  
  Exception Location:     /opt/envs/venv/lib/python2.7/genericpath.py in getmtime, line 54
  Unicode error hint
  
  The string that could not be encoded/decoded was: choacán.jpg
  </code></pre>