Change `gsub` to `tr` where possible
Merge pull request #17146 from divineforest/active-record-gsub-to-tr

Change `gsub` to `tr` where possible