make it work
Fix URL encoding bug for non ascii char
Merge pull request #1 from Puyb/master

Working version from Puyb