[ruby-core:117467] [Ruby master Bug#20412] UTF-8 String encoding behavior differs between 3.2, 3.3 and master