encoding: In TlvEncoder, change getNBytes to len operator.