moved module charset to libmercury_misc