docs: def WriteVarString(self, value, encoding="utf-8"):
          """
          Write a string value to the stream.
          Read more about variable size encoding here: http://docs.neo.org/en-us/node/network-protocol.html#convention
  
          Args:
              value (string): value to write to the stream.
              encoding (str): string encoding format.
          """
          if type(value) is str:
              value = value.encode(encoding)
  
          length = len(value)
          ba = bytearray(value)
          byts = binascii.hexlify(ba)
          string = byts.decode(encoding)
          self.WriteVarInt(length)
          self.WriteBytes(string)