def write_string(value, buff, byteorder='<STR_LIT>'):
data = value.encode('<STR_LIT:utf-8>')<EOL>write_numeric(USHORT, len(data), buff, byteorder)<EOL>buff.write(data)<EOL>
Write a string to a file-like object.