'Write a UTF-8 string of a given length to the packet.'

def writeUTF(self, s):

    utfstr = s.encode('utf-8')
    length = len(utfstr)
    if (length > 64):
        raise NamePartTooLongException
    self.writeByte(length)
    self.writeString(utfstr)
