diff --git a/sorter/src/main/java/sortpom/util/FileUtil.java b/sorter/src/main/java/sortpom/util/FileUtil.java
index <HASH>..<HASH> 100644
--- a/sorter/src/main/java/sortpom/util/FileUtil.java
+++ b/sorter/src/main/java/sortpom/util/FileUtil.java
@@ -6,7 +6,6 @@ import sortpom.parameter.PluginParameters;
 
 import java.io.*;
 import java.net.URL;
-import java.nio.charset.Charset;
 import java.nio.charset.UnsupportedCharsetException;
 import java.nio.file.Files;
 import java.util.Optional;
@@ -80,9 +79,9 @@ public class FileUtil {
      */
     public String getPomFileContent() {
         String content;
-        try {
-            content = Files.readString(pomFile.toPath(), Charset.forName(encoding));
-        } catch (UnsupportedCharsetException ex) {
+        try (InputStream inputStream = new FileInputStream(pomFile)) {
+            content = IOUtils.toString(inputStream, encoding);
+       } catch (UnsupportedCharsetException ex) {
             throw new FailureException("Could not handle encoding: " + encoding, ex);
         } catch (IOException ex) {
             throw new FailureException("Could not read pom file: " + pomFile.getAbsolutePath(), ex);
Reverted functionality which don't exists until Java <I>