fixes for magit
magit and encodings