GtkSourceView/Tepl - file loading and saving notes
Instead of using iconv for encoding conversion, maybe use encoding_rs (C bindings are available, it's what is used in Firefox 56).
- More generally, look at what Firefox uses for character encoding handling, both for auto-detection and conversion.