Escape html entities in FormatNumDirective