diff --git a/OpenSim/Framework/LLSDxmlEncode.cs b/OpenSim/Framework/LLSDxmlEncode.cs
index a7408669c4..ed5c4db284 100644
--- a/OpenSim/Framework/LLSDxmlEncode.cs
+++ b/OpenSim/Framework/LLSDxmlEncode.cs
@@ -290,7 +290,7 @@ namespace OpenSim.Framework
else
{
sb.Append("");
- sb.Append(e.ToString());
+ EscapeToXML(e.ToString(), sb);
sb.Append("");
}
}
@@ -611,7 +611,7 @@ namespace OpenSim.Framework
else
{
sb.Append("");
- sb.Append(e.ToString());
+ EscapeToXML(e.ToString(), sb);
sb.Append("");
}
}