Fix encoding of tags

This will url-encode tags when making specific calls. It is necessary for unicode tags.