This may not always work, depending on whether or not the UTF-8 has or does not have a BOM. See my example files in the codebank forum.