ADTS: Increased protection against writing illegal/nonsense files.