account for lexical_cast unsetting ios_base::skips flag