small optimization(use RSTRING_LEN instead of ngx_strlen)