Modified the behaviour of CURLOPT_COPYPOSTFIELDS

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