Write files as binary so writer doesn't crash with multipart/form-data