Fix XML parsing so that all valid encodings are supported
Remove fileStream.close() as it's not required
Merge pull request #142 from davispuh/fix_encoding

Fix XML parsing so that all valid encodings are supported