mbstring is not a required deps for Symfony, so you need to check and act accordingly like it's done elsewhere in the framework.