set encoding for mbstring library

described in closed issue https://github.com/crodas/LanguageDetector/issues/9