Chomping filename upon write