Do not support non-UTF-8 bases any longer

Got rid of the global reference utf_8_db and some dead code.