Url encode keys

Urls encodes all keys by default, fixes #2