rebuild encoding to charset library