Fix serialization of date to path parameter