Use Rainbow API to fix undefined method errors

Using the API per https://github.com/sickill/rainbow#example

We could also `require 'rainbow/ext/string'` but it's easy enough to wrap each usage rather than adding lots of methods to `String`.