support for binary files with new encryption