Encoding dealt.
Change the GBK encoding to UTF-8 when writing into the file.