fixes 1015187 - Write files from uploads with 0644 permission