do encodeURIComponent properly