Added check for PHP mb_substr() module