fix retrieve principal & keytab bug
use GBK encoding to write result data