Fixes #692 - double escaping of backslashes when using Postgres