[ruby-core:127519] [Ruby Bug#22517] Some String methods return a UTF-16/32 string without room for its terminator