Fix ensime/ensime-server#701: do not rely on buffer-file-coding-system

The objective is to prevent displaying control-m's in replacement text. This behavior depends only on the coding system of the file being edited, not that of the current buffer.