Replace .toByte with utility function that creates Bytes.