decision: add a common ifValidName function

Add a common ifValidName function at the level of the plugin. And
enable the usage of the underscore character when setting names.
Merge pull request #12 from Chabrier/master

decision: Add a common ifValidName function