Remove redundant `escapeChar` function

Hello! This is just a small clean-up: since `string.gsub` can accept a table as the third argument, `controlCharsTranslation` can be passed to it directly, there is no need to wrap it in a function.