We usually check for existence and use a regular function if mb_* is not there. Like here: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Application.php#L674