8015604: JDP packets containing ideographic characters are broken

Code uses string length rather than byte array length and non ascii entry brakes packet.

Reviewed-by: dholmes, jbachorik, sla
2 files changed