utils: added hex string to byte array method