Workaround for not-working PDO::quote. Related #1237