Added escaping of single quotes in note body