Make print() NUL-safe