Make urls links, also avoiding syntax problems