#259 Unicode error is raised instead of actual error

Removes unicode BOM from xml data (if present).