Fixing exports.encodeHTMLEntities