service: implement fallback if service name is not valid

this allows users to sign up with e-mail address as username without anything breaking.