title: Django: How to upload file without UnicodeEncodeError on save()?
body: <p>IM try to upload a file but when the file name have caracters like "ó" have a 'ascii' codec can't encode character u'\xf3' in position 59: ordinal not in range(128)
  im try to <code>obj.file = smart_unicode(form.cleaned_data["file"])</code> before save() on views.py</p>
  
  <p>and</p>
  
  <pre><code>def file(instance, filename):
      i = datetime.now()
      filename = smart_unicode(filename)
  
      return "archivos/files/%s_%s" % (str("a")+i.strftime('%Y-%m-%d'), filename)
  </code></pre>
  
  <p>on models.py, but when using view.py dont have error and on saved model have the name file correct but dont have file, and when not using smart_unicode have error, with out especial caracter font have problem to upload.</p>