handle serialization of dynamic DateTimes in the newtonsoft and iso8601 formats more efficiently