Correct handling of \n with printf.