Revert DictionaryInfo#charset to return the name of charset as is, and add DictionaryInfo#encoding to return an Encoding
Relocate functions related to charset to encoding conversion