modify encoding check
modify private to public
using MMD.ToFormatUtil