add default encoding when create new file