Fixed utf-8 encoding issues when exporting XML files, issue #11