MSO writes broken files, fdo#74929

Change-Id: Iec545fc2a7ec61f6d4678398f22878c9f31a450d