detecting UTF-8 BOM (fixes #1)