Fixed a global variable leak.

The variable v was leaking into the global space and there was a missing semicolon in the b64tohex method.