convert binary file to readable form