Fixed problem when handling XML files with unicode declarations.