Add encoding and table header