properly detect utf8 str len