Merge pull request #207 from Depado/fix_io_error_3.x

Fix issue 126 for 3.x branch