src/CarteBlanche/App/Config.php
protected function _slugify($index)
    {
        $index = utf8_encode(strtolower($index));
        $index = str_replace(self::$slugify_stripped_chars, self::$slugify_replacement_char, $index);
        $doubled = self::$slugify_replacement_char.self::$slugify_replacement_char;
        do {
            $index = str_replace($doubled, self::$slugify_replacement_char, $index);
        } while (strpos($index, $doubled)!==false);
        return $index;
    }
protected function _slugify($index)
    {
        $index = utf8_encode(strtolower($index));
        $index = str_replace(self::$slugify_stripped_chars, self::$slugify_replacement_char, $index);
        $doubled = self::$slugify_replacement_char.self::$slugify_replacement_char;
        do {
            $index = str_replace($doubled, self::$slugify_replacement_char, $index);
        } while (strpos($index, $doubled)!==false);
        return $index;
    }
Rebuild an index as a slug: lower case with no punctuation

@param   string  $index
@return  string