Change termination of string to use 0 rather than NULL.