hex_file: normalize file line endings