Solve encoding problem in uwsgi