Fix issue #1: clean xml BOF before parsing
Idea borrowed from AOSP sources