added support for mb_strlen in case mbstring extension is not installed