function encodeToBase64(text) {
		return btoa(unescape(encodeURIComponent(text)));
	}
Encodes text in the base 64 format used in playground URL params.
@param {string} text Text to be encoded to base 64.
@see https://github.com/eslint/eslint.org/blob/1b2f2aabeac2955a076d61788da8a0008bca6fb6/src/playground/utils/unicode.js
@returns {string} The base 64 encoded equivalent of the text.