Remove any BOM and encoding declaration from xml text.  #185
Merge branch 'issue185' into devel