Separate gb2312 and utf-8 decoding