Adjusted PersistenceAgent.as_module().
Fixed string conversion in IOManager.

Thanks to George K. Thiruvathukal <thiruvathukal@gmail.com> for the find.