In other words, it thinks that a string is encoded when it is actually not and therefore if I do something like
$.encoder.encodeForHTML($.encoder.canonicalize(string)), it gives me a different string
The string in question is something like this: "sdf\sdf\sdf"
Canonicalize transforms it into this: sdf�sdf�sdf