For example, copyign: https://github.com/mstr3336/elec5514/blob/e3c9c8e5f88fa7f0616b1c65661e8dcf577784db/Lab4_BLEComm/Source Code/Lab4_BLEChat/Middlewares/ST/STM32_BlueNRG/SimpleBlueNRG_HCI/hci/hci.c#L95 Breaks on "source code" correct behaviour would be to escape ' ' as %20