Fix bug #19785 (Ensure calling quote() is safe)