Move converting hexstrings to binary from the C to the Java level.