use another way to strip invalid XML chars

Change-Id: Ib89ac1fc3b6920e942f5cb9e65f757c9a3bbeb99
Reviewed-on: http://gerrit.aldebaran.lan/29494
Tested-by: gerrit
Reviewed-by: dmerejkowsky <dmerejkowsky@aldebaran-robotics.com>