Fix crash when opening start page.
AvalonEdit encoding detection: add support for UTF-8 without BOM.

We now don't add a BOM when saving an UTF-8 that didn't have one when it was loaded.