This handles an edge case where someone passes in numeric or other value. We pass command-line kwargs through yaml.safe_load, which would load these as non-strings.