Added utility functions for integer bytestring handling