make sure the buffer for decoding hex/modhex into is large enough

it has to be number of bytes * 2 for decoding.
fixes #18