Opinions are my own...
The old (legacy) Twitter BBCode can not be fixed because it steps on the current way of posting Tweets. An example of the old code:
If you have any of these in old posts you want to save, just edit the post and remove the [twitter][/twitter]. Then when you save it, it will be converted to the new format