url_params takes req and args, routing url_for can take nil or abort
supply own build_url that doesn't try to encode stuff
alright, ngx.var.uri is broken, don't use it