in src/main/java/org/apache/maven/plugin/resources/remote/AbstractProcessRemoteResourcesMojo.java [662:668]
private Writer getWriter(OutputStream os) throws IOException {
if (encoding != null) {
return new OutputStreamWriter(os, encoding);
} else {
return WriterFactory.newPlatformWriter(os);
}
}