Fixed utf-8 support

Refer to the django.utils.encoding, I written a smart_str function. 

I add the smart_str function in utils.py instead of app.py, because I don't know where to put it in app.py.  You can organize them on your branchs. Orz