Heartstone: Keyword slugs contain newline characters

It seems like Heartstone api for keywords adds \n at the end of the slug and setting the keyword in query when searching for all cards with or without \n fails to return anything:

{
    "id": 2,
    "slug": "spell-damage\n",
    "name": "Spell Damage",
    "refText": "Your spells deal extra damage.",
    "text": "Your spell cards deal extra damage.",
    "gameModes": [
      1,
      5,
      6
    ]
  },

Any idea how to make keyword work inside the query?

This also happens on battlenet api tester.