Replace string.gsub with string.tr where it's possible.