Make const char * -> unicode function null-proof