utf-8 character handling for table rendering