add datatools for GBKtoUTF
fix writing to xml