Strip off possible trailing slash when browsing.