Add extended character counting toggle

Courtesy of CME

Add new parameter **countExtendedCharacters** that will count extended
characters (such as Chinese characters) as 2 bytes.