Fix for UTF-8 encoding when converting MBDoc's to XML