Prevent double trailing backslash in base URL.