Rename encode and decode to wireEncode and wireDecode