Considering that `end_date` likely contains spaces, shouldn't that too have `|urlencode`?