Use #tr instead of #gsub where possible
Merge pull request #17150 from effektz/tr-instead-of-gsub

Use #tr instead of #gsub where possible