Fix warning.
Impose certain restrictions on the snapshot name.

Similar to the ones git imposes on the branch name.