UTF-8, BOM and parameter

Thanks to http://macscripter.net/viewtopic.php?id=24534