Handle string quote escaping and unescaping