Properly encode fields of johnned-to tables.