Fix safari (Closes #6)

 - On Safari, the base64 string coming from the backend has spaces, which are now removed.