Use octets to calculate string length (reverts
e262aeeedfc595821b42f9c84bf24a90e08ee669 (#459), required by SAGAI,
confirmed March 4 2013)