clean up some console logs, and correctly handle odd-numbered \ characters