use internal encoding with utf-8 when utf-8 strings on latin1 database.