Is the presence of nul a sufficient indicator that it predates base64?  Maybe the encoded data should be formatted as "B:<base64>" for easy detection?