Pick an encoding for the current editor