Escape URIs replaced in messages