code: public Charset getCharsetProperty(final String name, final Charset defaultValue) {
          final String prop = getStringProperty(name);
          try {
              return prop == null ? defaultValue : Charset.forName(prop);
          } catch (UnsupportedCharsetException e) {
              LowLevelLogUtil.logException("Unable to get Charset '" + name + "', using default " + defaultValue, e);
              return defaultValue;
          }
      }
docs: Gets the named property as a Charset value.
  
  @param name the name of the property to look up
  @param defaultValue the default value to use if the property is undefined
  @return the Charset value of the property or {@code defaultValue} if undefined.