Trim slashes at the end of urls