Fix filename sanitation and add test.