Handle the file in it's original encoding if libmagic doesn't detect a valid one