in reply to writing utf8 files under WindowsXP

Perhaps you need to change the input charset.
perl -Mencoding=latin1,STDOUT,utf8 -pe1
Boris