optimize: avoided use of the nginx request objects in ngx.encode_args.