<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ConvertToWireFormat(self, value):
 """Internally strings are utf8 encoded."""

    value = value.encode("utf8")
    return (self.encoded_tag, VarintEncode(len(value)), value)