Replace 0 with '\0' as nul terminated string.