Fix encoding in TB2 tests

Change-Id: I7fc5cf84f042da39bf29ae55aedc33845000bb9d