Add lc_charset support on local catalog clean (fix #377)