remove newlines from base64 encoded file content