src/TextFormatter.php
protected function correctIndexOffset($index)
    {
        return mb_strlen(mb_substr($this->title, 0, $index, $this->encoding), $this->encoding);
    }
protected function correctIndexOffset($index)
    {
        return mb_strlen(mb_substr($this->title, 0, $index, $this->encoding), $this->encoding);
    }
protected function correctIndexOffset ( $ index ) { return mb_strlen ( mb_substr ( $ this -> title , 0 , $ index , $ this -> encoding ) , $ this -> encoding ) ; }
Corrects the potential offset issue with some UTF-8 characters

@param $index
@return int
Corrects the potential offset issue with some UTF - 8 characters