$limit = 100;

if(mb_strlen($str, 'utf-8') > $limit)
{
    $str = mb_substr($str, 0, $limit, 'utf-8');
}