Use safer to_string on path instead of str(path)
Merge settings commits with path casting.