more universal handling of valid shell variable names