Fix problem writing binary content to a temporary file in the uri module.
Fix problem writing binary content to a temporary file in the uri module.

Fixes https://github.com/ansible/ansible/issues/10938
Fixes https://github.com/ansible/ansible/issues/7606

thaim/ansible,thaim/ansible