Use same rules for array quoting in text encoder as PostgreSQL.

This makes mutate-detection easier (in Rails).