Fix handling unicode characters in links (#1489898)