fix file endings in links