create table and columns with the right encoding (#309)