<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_string(self):
 """ Read string from input file with UTF-8 encoding. """

        length = self.read_int()
        return str(self.read(length).decode("UTF-8"))