replace all underscores with hyphen if attribute name starts with 'data_', not just the first underscore