I have never needed to guess the encoding, but I've noticed
Encode::Guess mentioned several times here. Have you tried it? Does it have the same problems as the Encode::Detect::Detector?
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]