resolve vim encoding