A well-tested WTF-8 encoder/decoder written in JavaScript.