I don't think it's really an issue here, the service name isn't something that input by the user or returned by the server but rather hard-coded into the source that uses the API.
Also there are other methods like the one above that also doesn't encode service above.