Add some UTF-8 tests. Fix typo in dbdimp.c
More sv utf8 tweaks