curl_exec error 3 : URL rejected: Malformed input to a URL function