Migrate StringEncoder(String) to StringEncoder(StandardCharsets)

Apache 2.0

Replaces new StringEncoder(charsetName) with new StringEncoder(StandardCharsets.<constant>) for all standard charsets (US-ASCII, ISO-8859-1, UTF-8, UTF-16BE, UTF-16LE, UTF-16).

org.openrewrite.java.netty.upgrade._3_2_to_4_1_.StringEncoderToStandardCharsets
mod run . --recipe=org.openrewrite.java.netty.upgrade._3_2_to_4_1_.StringEncoderToStandardCharsets

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.