Fix table encoding issues