this makes it easier to stub things out for tests.
it is only ever a bytes now, so let's enforce that.