Hmm-
Nika's meter should be an ideal preventative solution to the problem. 'Just don't distort', easy as that. I'll endorse that course of action, too.
Nika, I was pointing out that if you want to fix a file that's already damaged in this way, without attenuating anything in the normal range of hearing, you can cheat the metadata of the file so it claims to be 44.099K and then UPsample back to 44.1K using a really high quality SRC such as the Audacity program's sinc interpolation at a high quality level (actually, their low quality level is perhaps even subjectively better).
You shouldn't lose information in a high quality upsample- but you do lose all the illegal data that way. Nothing else is touched. In the absence of illegal data, this operation is imperceptible (from my ABX tests- anyone may try and better my results). If there's illegal data, the operation removes it, sometimes in an extremely obvious way. (from my ABX tests, 16/16)
Hence, a 'fix' for the problem that doesn't require turning the gain down on the rest of the audio. I thought that was relevant, because if someone making such a file was willing to turn the gain down, they wouldn't be having that problem in the first place, and so they can be assumed unwilling to not smash the levels and brightness. I think it's useful to be able to produce 'good' smash rather than just ugly smash. After all, it's fairly hard to hear clipped very high frequency transients unless they're doing something like aliasing or clipping the DAC. Excise the DAC-clipping stuff and you get simple digital clipping, which won't sound quite as nasty, just very loud.
Aside: isn't it fascinating how technology continues to provide uglier and uglier ways of clipping? First tube overdrive. Then transistors. Then TL071s driven beyond their power supply rails. And now, Gibb effect digital DAC-smashing. I guess it'll be DSD next. How much output can you get from hyperclipping SACD recorders?