restore ostream after formatting, fixes #13