Base64 stream encoder/decoder in C89