Utf8 bom detection and removal

Detect and remove utf8-bom. No test yet as I don't understand the testing framework or how to use. Pointers are welcome.