Fixes #3144: It wasn't possible to use attributes with spaces in validation rules