change useless gsub to tr

Consistent with past commits such as 2d8396f & c6147113f