Use Decode/Encode in etcd_tools