Fix encoding issue with table engine

See #59.