Fix GB18030 issues for PHP SDK