stream iomanip preservation made RAII