simplify the way the encoding command is called