Apparently os.walk gives us a decoded string, and magic.from_file requires an encoded string.