Gravity: fix escaping of values in MySQLConnection::escape_string