table: handle utf8 input