Encode URLs sent to social networks