Thanks. I had experimented with binmode in different ways, but your example does the job!
In reply to Re^2: Forcing UTF-8 output on STDOUT by mldvx4 in thread Forcing UTF-8 output on STDOUT by mldvx4