public static void save(Project project, Path location, Encoder encoder) {
        
        try {
            Files.write(location, save(project, encoder)
                .getBytes(StandardCharsets.UTF_8));
            
        } catch (final IOException ex) {
            throw new SpeedmentConfigException(
                "Could not save json-file to path '" + location + "'.", ex
            );
        }
    }
Saves the project in a UTF-8 encoded file.

@param project   to save
@param encoder   the encoder to use
@param location  for the UTF-8 encoded file

@throws SpeedmentConfigException if the file could not be saved
runtime-parent/runtime-config/src/main/java/com/speedment/runtime/config/util/DocumentTranscoder.java