mg_get_cookie() moved to string.c