added compatibility changes for new charEncoding Menu