public override string ToString(object o, string formatString, CultureInfo culture)
{
if ("java-escape".Equals(formatString))
{
// 5C is the hex code for the \ itself
return ((string)o).Replace("\\u", "\\u005Cu");
}
return base.ToString(o, formatString, culture);
}
}