add StringUtils truncate utf-8 string for max bytes.