my $in_file = $opt->get_file; open(my $fh, "<:encoding(utf8)", $in_file) or die "Could not open $in_file: $!";