This change is the result of a fix to NetIQ bug 832725.
https://bugzilla.novell.com/show_bug.cgi?id=832725

The issue is that we want to make sure we use SafeHTML for error messages from the server, but we need to reencode apostrophes when we do that.