Fixed coding system handling and improved download error recovery.