PF-471: Autocompletion fields: fix JSON escaping (of \n etc.).