Fix a whole bunch of issues resulting from unescaped quotes.