2213: Don't crash when we're given invalid XML control chars