function escapeUTF8(data) {
    return data.replace(xmlReplacer, singleCharReplacer);
}
Encodes all characters not valid in XML documents using numeric hexadecimal
reference (eg. `&#xfc;`).

Note that the output will be character-set dependent.

@param data String to escape.