Bugfix: prevent crash when user entered Unicode characters in notes. #1590