For converting from string to hex and back.