docs: function encodeError(err, header) {
    return Buffer.concat([
      header || new Buffer([0]), // Recover the header if possible.
      new Buffer([1, 0]), // Error flag and first union index.
      STRING_TYPE.toBuffer(err.message)
    ]);
  }