docs: def write(self, name, data):
          """Write a blob of data to the XPI manager."""
          if isinstance(data, StringIO):
              self.zf.writestr(name, data.getvalue())
          else:
              self.zf.writestr(name, to_utf8(data))