remove newlines from base64

Safari couldn’t cope with them, github API adds newline characters to
the base64 content for reasons known best to itself.