test-webservice: Null terminate GString correctly

Closes #136.

Signed-off-by: Marius Vollmer <mvollmer@redhat.com>