Fix host.str() in localhost mode