--- includes/unicode.inc	2007-12-28 14:02:50.000000000 +0200
+++ /tmp/gg/includes/unicode.inc	2009-03-24 09:59:53.000000000 +0200
@@ -399,8 +399,13 @@ function _decode_entities($prefix, $code
  * equal to the byte count.
  */
 function drupal_strlen($text) {
-  global $multibyte;
+  global $multibyte, $logger;
   if ($multibyte == UNICODE_MULTIBYTE) {
+    if (is_array($text)) {
+      // log it
+      watchdog("system bugs", "Oops! array passed to " . __METHOD__ . " ! Array is: " .  var_export($text, true) . ". Workaround - using first element of the array.", null, WATCHDOG_EMERG);
+      $text = array_shift($text);
+    }
     return mb_strlen($text);
   }
   else {
