src/Utils/Filter/ConvertLiteralUrl.php
public function filter($string)
    {

        // replace all characters that are not numbers or simple chars
        $string = preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string));
        $string = strtolower($string);
        $string = trim($string, '-');

        // return the converted URL
        return $string;
    }
public function filter($string)
    {

        // replace all characters that are not numbers or simple chars
        $string = preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string));
        $string = strtolower($string);
        $string = trim($string, '-');

        // return the converted URL
        return $string;
    }
Filter and return the value.

@param string $string The value to filter

@return string The filtered value