Adding function to encode a bytestring using the prefix code db.