Fix str→bytes saving for Py3. Tmplement tmp_files[] cleanup.