Fix so main can handle writing xml with unicode
Update history and version