util: expand urls and add spaces.