mtp: add SendData()/GetData() to generically encode/decode data.