function encodeString(s, encoding) {
	  if (encoding === void 0) {
	    encoding = 'utf-8';
	  }

	  encoding = encoding || 'utf-8';
	  return env().platform.encode(s, encoding);
	}
Encodes the provided string into bytes using the provided encoding scheme.

@param s The string to encode.
@param encoding The encoding scheme. Defaults to utf-8.

@doc {heading: 'Util'}