Like done in other parts of the framework, you should also support when mbstring is not available and fallback to the normal strlen function.