A robust UTF-8 encoder/decoder in JavaScript.