Improve error reporting when creating a vm name with a '.'

Refs #15958