py3: encode command in py2 only