encode url with encodeURIComponent,because the window.btoa method doesn't support unicode,fuck!