Fixed bug with accaunting wide char strings

Issue #284
https://github.com/cuckoobox/cuckoo/issues/284