<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unicodify(filename):
 """Make sure filename is Unicode. Because the tarfile module on Python 2 doesn't return Unicode. """

    if isinstance(filename, bytes):
        return filename.decode(locale.getpreferredencoding())
    else:
        return filename