encode all date, datetime and time objects to iso8601