Added UnicodeDecodeError handling for GBK.