mod_base: Fix filter_capfirst to support i18n strings