docs: def writeMultiByte(self, value, charset):
          """
          Writes a multibyte string to the datastream using the
          specified character set.
  
          @type value: C{str}
          @param value: The string value to be written.
          @type charset: C{str}
          @param charset: The string denoting the character set to use. Possible
              character set strings include C{shift-jis}, C{cn-gb},
              C{iso-8859-1} and others.
          @see: U{Supported character sets on Livedocs (external)
              <http://livedocs.adobe.com/flex/201/langref/charset-codes.html>}
          """
          if type(value) is unicode:
              value = value.encode(charset)
  
          self.stream.write(value)