[PLXUTILS-60] fixed the code used to extract encoding from an XML prolog since it could catch an attribute value defined in the XML content (merged from plexus-utils r7158)