Change to/from hex -> to/from str, use b64. (ticket #49)