Proper url encoding
Merge pull request #30 from autowp/patch-1

Proper url encoding & extra trailing spaces