Replace newlines in base64 strings

Appears to have been breaking demo on mobile Safari