Fix bug on url with whitespace
Merge pull request #2 from mdurand86/master

Fix bug on url listing, use urlencode.