encode sub name and convert stats to ints/floats