Support grammar files encoded with UTF-8 with a byte order mark

Fixes #175