Use IOBuffer in place of memio.
Merge pull request #286 from dcjones/master

Fix an error from memio deprecation.