Normalize links (Fixes #1481).