urlencode location and title as window.btoa() doesn't handle unicode correctly.