encode table keys as UTF-8 (they are shortstrs)