Managing encoding in uploads