Fix links and encoding