This commit copies what Vagrant does to filter out guest names with invalid characters, and applies the same regex to disk names.