module Rack::Utils

def valid_path?(path)

def valid_path?(path)
  path.valid_encoding? && !path.include?(NULL_BYTE)
end