I assume `file_info.name` is a unicode object. Then you can also write:

    file_info.name.encode('utf-8')