normalize link targets