Fixed invalid count of words for UTF8 strings.