Bugfix: utf8 encode data before storing in xml file