remoting command encode