bug fixes

contents from the active editor will now be used.
added URL encoding to certain links.
Merge pull request #25 from akasfei/master

Upstream changes