Add cnURL::encode() utility method.