MediaBag: Improved normalisation when writing files