fix file endings