Index: /libcaca/trunk/python/caca/common.py
===================================================================
--- /libcaca/trunk/python/caca/common.py	(revision 4773)
+++ /libcaca/trunk/python/caca/common.py	(revision 4774)
@@ -276,5 +276,7 @@
         ch  -- the character to convert
     """
-    _lib.caca_utf8_to_utf32.argtypes = [ctypes.c_char_p, ctypes.POINTER(ctypes.c_size_t)]
+    _lib.caca_utf8_to_utf32.argtypes = [ctypes.c_char_p,
+            ctypes.POINTER(ctypes.c_size_t)
+        ]
     _lib.caca_utf8_to_utf32.restype  = ctypes.c_uint32
 
@@ -289,8 +291,8 @@
     _lib.caca_utf32_to_utf8.restype  = ctypes.c_int
 
-    buf = ctypes.c_buffer(2)
+    buf = ctypes.c_buffer(7)
     _lib.caca_utf32_to_utf8(buf, ch)
 
-    return buf
+    return buf.raw.rstrip('\x00')
 
 def utf32_to_cp437(ch):
