using correct byte length in case of UTF-8 data