UTF-8, BOM and parameter

Thanks to http://macscripter.net/viewtopic.php?id=24534
Merge pull request #6 from Nagle/utf-8-support

UTF-8, BOM and parameter