Make sure all path components are strs