in reply to Re^2: get UTF-8 character codes
in thread get UTF-8 character codes

It's STDIN that's causing the problem, not STDOUT. You need to be working on ARGV instead instead of STDIN. Or, an easier way of dealing with it is, especially since this is a one-liner anyway, just add the following before -e:
-Mopen=:utf8,:std
See open for more.