Hand-apply 96593d0ea6eb7b01ee97c8292c4546fc56d3da9d; only write metadata before encod...