for (var i = 0; i < encoded.length; i++) {
              view[i] = encoded.charCodeAt(i);
            }