Restore the BOM-skipping logic to the Lua script reader

And add BOM to one of the test files to verify it works.