Added code to handle ISO-88591 encoded XML