fix db_encoding