lib/core: Added hexdigest_to_bytes method from String to Bytes