Fixed text updating for UTF-8 strings.