Fixed trailing slash behavior for base URL (Java API client)