cobs encoding