expr: simplify valid_identifier use
Merge pull request #819 from mrocklin/tab-complete-on-fields-with-spaces

expr: normalize identifiers to use underscores