Fixed token byte array conversions issue