@b4n, not sure, but I think this is affected by the problem I raised on IRC, the encoding used to load a file, and which will therefore be stored in prefs, might not be one in our list of encodings, so `encodings_get_from_charset()` will give null. Have I missed somewhere in the spaghetti that is encodings where the saved string is used for loading the file?