docs: protected String determineEncoding(ResourceRequest request) {
          String encoding = request.getCharacterEncoding();
          if (encoding == null) {
              encoding = getDefaultEncoding();
          }
          return encoding;
      }