make sure env is unicode to fix chinese in cookie