add Latex plugin
set encoding to utf-8

This can make ycm work without firing encoding error.
This also make sure that file is encoded with unicode if possible.