bug fixes

contents from the active editor will now be used.
added URL encoding to certain links.