Cleanup and bug fixes

Most notable here is the fix to the IO#read_string extension.