Quick and dirty patch to communicate with Emacs in UTF-8.

This should be rethought in a more principled way. Most notably
Open.text should be rewritten to support encodings directly.