WOFO-1063 escape ' in cursorKey