fix workaround for utf-8 db