Revert "Do not gsub non ASCII characters in header anchor.".

This reverts commit 699babe.

Also change the upgrading_ruby_on_rails link back to original in 4_2_release_notes.
Merge pull request #16581 from JuanitoFatas/guides-anchor-link

Revert "Do not gsub non ASCII characters in header anchor.".