Fix the Json response encoding

Servers like uWSGI did not work at all because of this.