added C support for ByteString key