Allow both Paths and strings.