Fix

* Utils: use mb_strlen instead of strlen, add getLength
* LangManager: add function to check errors