I'm just looking for a binary response: is a given file in valid utf-8 format or not? Using the built-in IO layers seems to hide problems, i.e. open my $handle, '<:utf8', $file doesn't work. If I feed that a binary file which is plainly not utf-8, perl blithely reads the file without complaint.