As bytes or text?

We need unit tests for any of this (which would probably make my point clearer).  Those tests should assert that the token is of the correct type, as well as being equal to the desired value.