FIX: issue #796 (Can't output CJK characters properly on Windows)