in reply to encoding with filtering from command line
Doesn't that work?
perl "-Mencoding=whatever,Filter=>1" yourscript [download]
Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")