ISO Date encode dates in RESTResponse
Fix a bug in the MiddlewareController