Replace string with escaped quotes with single-quoted strings, begin cleanup