Fixes problems serializing Python nested quotes.