Add Util class, without  canEncode(c) method fixes