work correctly with utf8 strings. Fixeda visibility issue with the testing suite and added relevant unit tests.