Remove the last slash from URL if exists