Properly prints null characters using fputc().