Use java.nio.charset.StandardCharsets.UTF_8 and added readResource/readFileOrResource