$title = encode("UTF-16LE", "​கோப்பு​பெயர்"); open XXX, ">:encoding(UTF-8)", "c:/$title\.xml"; close (XXX);