Base64 streaming encoder and decoder