Why are String#downcase/upcase etc considered making a string unsafe?

Per: https://github.com/rails/rails/commit/1300c034775a5d52ad9141fdf5bbdbb9159df96a#commitcomment-3887460