Switched to using hex encoding.

Closes #5.