Escape quotes in states