Fixes binary upload of non-text files