A robust JavaScript implementation of the koi8-r character encoding as defined by the Encoding Standard.