in reply to Re^2: utf8 char or binary string detection
in thread utf8 char or binary string detection

replacing that encoding line is simple, see utf8 and open

use utf8; use open qw/ :std :encoding(utf8) /;