There are utilities around that check audio files, see here:
I would assume that you can cut a readable tag from a file so that it is held in the memory and
then delete all further tags until there is nothing left.
And then you paste the tag from the memory.
MP3tag handles padding on its own account.
For flac files see
MP3tag does not have to do anything with the encoding, just tagging.