Adapt to the older "bytestring" API