public static function checkSettings()
    {
        if (version_compare(PHP_VERSION, '6.0.0', '<') && ini_get('safe_mode')) {
            Debug::_warn(
                '<a target="_blank" href="http://www.php.net/manual/en/features.safe-mode.php">safe_mode</a> is on'
                .( ini_get('safe_mode_gid') ? ' / safe_mode_gid = '.ini_get('safe_mode_gid') : '' )
            );
        }
        if (ini_get('default_charset') == '') {
            Debug::_info('default_charset not set&hellip; setting to UTF-8');
            // this will also set default Content-Type header to 'Content-Type: text/html; charset=UTF-8'
            ini_set('default_charset', 'UTF-8');
        }
        if (!extension_loaded('mbstring')) {
            Debug::_warn('mbstring extension not loaded');
        } elseif (ini_get('mb_string.internal_encoding') == '') {
            Debug::_info('mb_string.internal_encoding not set&hellip;');
            $defaultCharset = ini_get('default_charset');
            Debug::_info(' setting to default_charset: '.$defaultCharset);
            mb_internal_encoding($defaultCharset);
            mb_regex_encoding($defaultCharset);
        }
    }