in reply to Re^6: XML::Twig and file encoding
in thread XML::Twig and file encoding

I see! This was the bit I was missing:

open(NEW, '>:encoding(UTF-8)', $outfile)

That seems to do the trick. Thanks for the tips! Really appreciate it.