- made xml file encoding configurable