bugfix: encodeURI -> encodeURIComponent