Strip column names to remove whitespace before replacing invalid characters with '_'.