set encoding for emails, fixed bug with todo