Ignore query params when getting file extensions