Modified the behaviour of CURLOPT_COPYPOSTFIELDS to support binary contents.

Updated CURLOPT_COPYPOSTFIELDS to handle strings with NUL on them.
Since the copying is done inside libcURL, this shouldn't pose any
issues.