Fix in encoding detection for junk text before ?xml tag.