Use strict base64 encoding method

Looks like some decoders don't like newlines in the base64 code