Escape illegal chars in links