Importing a document containing non-printable characters and other invalid for XML characters is possible. However, trying to export the same to XAML or DOCX causes System.ArgumentException raised by the XmlWriter. Workaround: Preprocess the input file and remove any characters not allowed in XML. Fix available in LIB Version 2018.3.1029.