services: validate service instance name.

closes #570.