Fast javascript utf-8 encoder and decoder