private void readMenuFile(String encoding, final boolean reload) {
        final FileConfiguration data = new YamlConfiguration();
        try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file), Charset.forName(encoding)))) {
            String line;
            StringBuilder sb = new StringBuilder();
            while ((line = in.readLine()) != null) {
                sb.append(line);
                sb.append('\n');
            }

            data.loadFromString(sb.toString());

            new BukkitRunnable() {
                @Override
                public void run() {
                    if (reload) {
                        onReload(data);
                    } else {
                        onLoad(data);
                    }
                }
            }.runTask(plugin);
        } catch (FileNotFoundException ex) {
            plugin.getLogger().warning(file.getPath() + " no longer exists");
        } catch (IOException ex) {
            plugin.getLogger().log(Level.WARNING, "Error reading " + file.getPath(), ex);
        } catch (InvalidConfigurationException ex) {
            if (encoding.equals("UTF8")) {
                plugin.getLogger().warning("Outdated menu file detected, trying to read in ANSI: " + file.getName());
                new BukkitRunnable() {
                    @Override
                    public void run() {
                        synchronized (file) {
                            readMenuFile("Cp1252", reload);
                        }
                    }
                }.runTaskAsynchronously(plugin);
            } else {
                plugin.getLogger().log(Level.WARNING, "Corrupted menu file detected: " + file.getPath(), ex);
            }
        }
    }