Fix ENCODE not working for ALTER TABLE statements