Send a message to Ricardo in reply to the comment:
Thanks for this. Worked flawlessly.I am using this to make a PHP processor/editor/organizer for text files created with my Nokia 6630 phone, and they are saved as UTF-16.Wonderful :)