encodeAny = data => {
  const encoder = encoding.createEncoder();
  encoding.writeAny(encoder, data);
  return encoding.toUint8Array(encoder);
}
Encode anything as a UInt8Array. It's a pun on typescripts's `any` type.
See encoding.writeAny for more information.

@param {any} data
@return {Uint8Array}