[fix #28] Do not encode space character

URLEncoder.encode() encodes space characters as '+'. This should be undone since
not expected in the JS implementation.
Add unit test for text containing space.

Closes #28