base64 encode everything (fixes #9)