function encode(sData) {
		return window.btoa(unescape(encodeURIComponent(sData)));
	}
Encodes rules written by the user.
@private
@param {string} sData Stringified object containing rule properties.
@returns {string} base-64 encoded string.