Extract clean_path_info method from Rack::File#_call