Add logging helper that will sanitize strings of new line chars
As we continue to improve code quality, it was uncovered that we should be sanitizing new lines from user-input strings when logging the values. While low risk in logs, it could lead to falsified log entries from bad actors, so we should still address the issue. All we need to do to fix this is to replace carriage returns and line feeds with another character for any user input before logging.