Change base64 ByteString usages to Text to work with aeson 0.7.0, which doesn't have To/FromJSON instances for ByteStrings anymore.