Use ByteArray.decodeToString() instead of String(byteArray)
ProprietaryThe String(ByteArray) constructor is JVM-only and uses the platform default charset; byteArray.decodeToString() is the multiplatform Kotlin extension and always uses UTF-8.
org. openrewrite. kotlin. migrate. UseDecodeToString$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseDecodeToString$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.