use sfa.util.PostgreSLQ.quote() instead of reimplementing it here