Coverity fix
Coverity fix
Verify string is UTF8 clean, and unlink partially initialised databases