ok casting it to ngx_str_t works,fixed