public static function getEncoding(ContainerInterface $container = null): string
    {
        $i18n = static::get('i18n', $container, false);

        return $i18n ? $i18n->getEncoding() : mb_internal_encoding();
    }