SONIC-2123: make sure we replace spaces in metric names with underscores