On one of my machines I have the error when I am working with google apps engine or django.
For example:
app.yaml
application: demas
There is a patch:
http://bugs.python.org/file18143/9291.patch
Works great for me.
Just replace UnicodeEncodeError to be UnicodeError