fix links and characters