code: function byteArrayToString(byteArray) {
  		let str = '';
  		for (let i = 0; i < byteArray.length; i++) {
  			str += byteArray[i] <= 0x7F ? byteArray[i] === 0x25 ? '%25' : // %
  				String.fromCharCode(byteArray[i]) : '%' + byteArray[i].toString(16).toUpperCase();
  		}
  
  		return decodeURIComponent(str);
  	}
docs: Converts the byte array to a UTF-8 string. From http://stackoverflow.com/questions/1240408/reading-bytes-from-a-javascript-string?lq=1