remove last slash from url