curl_escape

fnchar * curl_escape(scope const(char) * string, int length)

the previous version: