Could you please change `mb_substr($path,$dirLen+1)` part to `mb_substr($path,$dirLen+1,null,Yii::app()->charset)`?