Strip off filename and query string for JSONP Remote test.