fix possible broken javascript string in the unsaved change warning.