Fixed encodeing bug for metric names
Map metrics to strings before providing to client