BUG-1440: extract a reusable StringInstanceIdentifierCodec