fix #2018 (iostring test failure)