Enhanced handling of broken file uploads.
HTML cleanup.