Jack: modifed encode in Chinese