replace (char) 0 with '\0'