hexify and decify conversion functions