for some functions, translate undef => NULL for const char *