According to https://gist.github.com/dominikh/208033, tr is faster than gsub at replacing one character