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