Added xml posts dump function. Added UTF-16BE support