dtrace: backport two byte string fix

This is a partial backport of 5921158

Re #6309
Closes #6319