diff --git a/bits/22_xmlutils.js b/bits/22_xmlutils.js
index d4f378a..71f3e20 100644
--- a/bits/22_xmlutils.js
+++ b/bits/22_xmlutils.js
@@ -60,7 +60,7 @@ var unescapexml/*:StringConv*/ = /*#__PURE__*/(function() {
 	};
 })();
 
-var decregex=/[&<>'"]/g, charegex = /[\u0000-\u0008\u000b-\u001f]/g;
+var decregex=/[&<>'"]/g, charegex = /[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;
 function escapexml(text/*:string*/)/*:string*/{
 	var s = text + '';
 	return s.replace(decregex, function(y) { return rencoding[y]; }).replace(charegex,function(s) { return "_x" + ("000"+s.charCodeAt(0).toString(16)).slice(-4) + "_";});