fix for uploading in chrome: restored the original sendAsBinary substitute (which apparently wasn't as pointless as I thought. oops.)