Various conversion code in the public domain (hex, Base64, etc.)