Improved normalize links in diary (fixes #66)