escape inputs to definition edit form, fixes #86