Even though there's four bytes the length of the string is consistent with what a human being would interpret as the length 3 of the string which is 3.
Gloucestershire's total was largely due to Lancashire's wayward bowling with seamer Peter Martin, who normally delivers a consistent line and length, allowing openers Tim Hancock and Kim Barnett to hit 27 off his first four overs.