Change values to bytes