Changed curl resource in testEncodeUnknown to a socket so CURL is not required