Use const `str` parameters.

This is a more reasonable approach.
Fix the proposed helper functions.

I think this can be simplified with templates. I'm wondering if the
colorize function could be made compile-time when that's possible.