[utils] Add bytes_to_long() and long_to_bytes()