set encoding for mac