Correct byte types and encoding in test script