Instead, move the loop added to cv_namestring() here, copying char by char and translating the '.' to '@'. Or better, use an inline function to do it.