conform urlencode to the RFC 3986
Merge pull request #40 from nykopol/url_encode_spaces

conform urlencode to the RFC 3986