Casting integrals when formatting to ensure portability for long longs.
Only streaming string up until NUL.