[BUG] Use encodeURIComponent() instead of encodeURI()

Using encodeURI() will preserve characters like +, & and # which will brake sharing URLs if the title contains one of these characters.

encodeURIComponents() encodes these characters as well and therefore fixes this problem.