Convert dashes to underscores in variable names