Fixes issue #589: validate the scenario name.