perl -pe 'BEGIN{binmode STDOUT,":utf8"}' < file.iso > file.utf8 # or, using the more cryptic "-C" option: perl -CO -pe '' < file.iso > file.utf8