Base64 encoding for smaller temp files