Moving to base64 encoding. Fixes the stream problem.