Don’t escape backslashes unless we are inside a quoted string and the next char is a quote

Sadly, we can’t doctest stuff with backslashes because it drives doctest
crazy.