streamline colorize() (untested)
minor cleanup of map_string_to_scrubbed_string (untested)
clean up is_terminal, fixing incorrect comments (untested)