#16795 - update generating text version to handle UTF-8