[ruby-core:123491] [Ruby Bug#21641] Hash#to_s behaves different in 3.4