agent: added support for multibyte string parameters in SendTrap