Add escaping for strings in editing comment. Fixes #2014