utf8 boundary patch

related to issue #13