Hex encoder/decoder scripts