<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 """ Convert all strings to UTF-8 """

        for key in data:
            if isinstance(data[key], str):
                data[key] = data[key].encode('utf-8')
        return data