Fixed bug in xmlEncode() method.
Merge pull request #3 from zoonman/patch-3

Fixed bug in xmlEncode() method.