add int_to_bytes to utils.c
Some unfinished rework that doens't work