Remove newlines from base64 content before parsing

Safari has problems with base64 with newlines in it which is what Gitlab returns.