improve url to link conversion