clean up file endings