$OpenBSD$
--- src/ovirtcli/platform/posix/vnc.py.orig	Mon Nov 16 15:56:08 2015
+++ src/ovirtcli/platform/posix/vnc.py	Wed Feb  3 15:30:30 2016
@@ -25,7 +25,7 @@ from subprocess import Popen, PIPE
 
 
 # Template to generate the remote viewer configuration file:
-CONFIG_TEMPLATE = """\
+CONFIG_TEMPLATE = u"""\
 [virt-viewer]
 type=vnc
 host={host}
@@ -60,7 +60,7 @@ def launch_vnc_client(host, port, ticket, title, debug
         return
 
     # No luck, no known command is available:
-    raise Error, Messages.Error.NO_CONSOLE_FOUND % ('vnc', 'vnc')
+    raise Error, Messages.Error.NO_VNC_VIEWER_FOUND
 
 
 def launch_vncviewer(cmd, host, port, ticket, debug=False):
@@ -89,7 +89,7 @@ def launch_remote_viewer(cmd, host, port, ticket, titl
     )
     config_fd, config_path = tempfile.mkstemp()
     with os.fdopen(config_fd, "w") as config_stream:
-        config_stream.write(config_text)
+        config_stream.write(config_text.encode("utf-8"))
 
     # Run the remote-viewwer command:
     args = ["remote-viewer", config_path]
