Flatten multiple underscores to one when generating a C99 identifier.