fix ApiUrlBuilder's handling of dates