fix wrong utf8 string lenght