unicode support for xgmml and some cosmetics