Fix REQUEST_URI when using a non-standard endpoint

If you use an endpoint other than /batch e.g.

    config.middleware.use BatchApi::RackMiddleware do |batch_config|
      batch_config.endpoint = "/api/batch" # default /batch
    end

then the REQUEST_URI gets mangled.  This fixes it!