code: private static String removeWindowsTrailingDots(String fileName) {
          // machte unter Win noch Probleme, zB. bei dem Titel: "betrifft: ..."
          // "." und " " am Ende machen Probleme
          while (!fileName.isEmpty() && (fileName.endsWith(".") || fileName.endsWith(" "))) {
              fileName = fileName.substring(0, fileName.length() - 1);
          }
          return fileName;
      }
docs: Remove stray trailing dots from string when we are on Windows OS.
  
  @param fileName A filename string that might include trailing dots.
  @return Cleanup string with no dots anymore.