Removing stripControlChars function, as it's no longer needed.