Add sanitize option to log module (without Boost)

Same as #346 from @protomouse but without Boost requirement:
Adds an optional `-sanitize` flag to the `log` module. Currently strips control codes for styling. Closes #191