Change char* references to remove deprecation warning