short circuit simple json string generation and memoize iso8601 string

Fixes #2179
timestamp.to_iso8601 works for all platforms and faster than time format parsing

Fixes #2179