doctest/io.ascii

Fixes doctests in  package.  @taldcroft