rails/rails — pull request #17125 by acrogenesis (2014-10-01 07:29:08+00:00)
Title: use tr instead of gsub when possible

tr is over 5x faster than gsub, in this 2 cases they are interchangeable