encode xml message in suspendAt()

Fixes #2
Merge pull request #3 from jimfoltz/fix/2/invalid-xml

encode xml message in suspendAt()