Remove trailing slash

Ticket: #4669