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