Fixes DAE Encoder after IdStore integration

Adds additional utility function to IdStore to use char* instead of string. Pointers are checked for NULL values.