GROOVY-7229: Should use charset.name() instead of charset.toString() (missed one use case)