diff --git a/_includes/post-sharing.html b/_includes/post-sharing.html
index d6c80d702e2..69714aee8ea 100644
--- a/_includes/post-sharing.html
+++ b/_includes/post-sharing.html
@@ -6,10 +6,11 @@
{{ site.data.locales[lang].post.share }}
{% capture title %}{{ page.title }} - {{ site.title }}{% endcapture %}
- {% assign url = page.url | absolute_url %}
+ {% assign title = title | url_encode %}
+ {% assign url = page.url | absolute_url | url_encode %}
{% for share in site.data.share.platforms %}
- {% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url | escape %}
+ {% assign link = share.link | replace: 'TITLE', title | replace: 'URL', url %}