class Cucumber::Formatter::Json

def encode64(data)

def encode64(data)
  # strip newlines from the encoded data
  Base64.encode64(data).delete("\n")
end