Fix db_encoding and encoding admin files