Add a unit test for BinarySafeString