Convert DateTime to ISO8601-String in JsonParser before calling json_encode

Fixes #784