'Encode this Character string into the appropriate byte format.
@type strio: file
@param strio: The byte representation of this Charstr will be written
to this file.'

def encode(self, strio, compDict=None):

    string = self.string
    ind = len(string)
    strio.write(_ord2bytes(ind))
    strio.write(string)
