Guess a encoding for a XML document