In case the generated service inherits the exposed object's name (the user didn't specify a name via --name), truncate it up to the maximum length for a valid service name