Support grammar files encoded with UTF-8 with a byte order mark (fixes #175)