Social media sharing videos pages

How to encode url using the social media buttons while sharing in social media?