fixed bug with duplicating special chars in links