mb_substr and mb_strlen support for installs without it