<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _write_utf8(write, value):
 """Writes a length-prefixed UTF-8 string."""

        write('h', len(value))
        write.io.write(value.encode('utf-8'))