tableName has to be encoded before field type checking