Fix %q, %Q, and %s literals