Added a special case for handling java Date objects by converting them to Calendars and then formatting using ISO8601