encode chinese and fix 500 server error