I know it is a common command for Vimers, however, I knew it just now.

:write ++enc=utf-8 test.m

Done!