Strip trailing slash off mongodb url for tunnel.