format one-hot encoding post