Use ngx.print for writing response body so it comes out unmodified