fixed invalid utf8 string len