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.