Why not just require that the user quote the value?  `npm config set registry "http://foo.com http://bar.com"` etc?