code: function (bytes, byteOffset, byteLength) {
  		try {
  			UTF8.getStringFromBytes(bytes, byteOffset, byteLength, true);
  		} catch (e) {
  			return true;
  		}
  		return false;
  	}
docs: non UTF8 encoding detection (cf README file for details)