VW-6849 escape special characters for Postgres