separated the code that does base64 encoding from the code that unencodes hexstrings
made base64_convert instead return a null-terminated string instead of printing to stdout; modified the testing code as a result