refine `file://` match