Add configurable encoding to Mecab