Fix special characters in snippets and DialogNoteView