Fix binary data upload with jQuery.ajax()