Fixed bug #284 with accaunting wide char strings