Reencode in UTF-8
Force temp file for note to be written as UTF-8.
Fix test to compare temp file contents as UTF-8.