set encoding for open, start on new, save