fix #2: incorrect handling of tables containing char columns