Use `setEndpoint` instead of deprecated `setServer`.

- See https://github.com/square/retrofit/blob/master/CHANGELOG.md.