fixed support for utf-8 strings