= io: remove too tight assertions. replace remaining `assert`s

fixes #631