Fix codec used in reading archive files