modify some gbk enc for more robust