fix encoding text in table header and body