fix IllegalArgumentException when using an endpoint that includes dot characters