an older fix for encodeURIComponent in dropbox.js