I have a file with a unicode name(eg chinese characters). I get a UnicodeEncodeError. I'm using postgres database with utf8 and the django development server on ubuntu lucid 64. What am I missing? I do the following where filename is the unicode name of the file in models.py:

```
def get_upload_path(instance,filename):
    return filename # Unicode error if filename has non latin 1 characters

class Kind (models.Model):
    style = models.ForeignKey(Style)
    kind_file = models.FileField(upload_to=get_upload_path)

```

from shell:

![enter image description here](https://i.stack.imgur.com/6OMID.png)