--- DBIx-SearchBuilder-0.99/SearchBuilder.pm	2004-03-28 16:38:29.000000000 +0400
+++ DBIx-SearchBuilder-0.99-my/SearchBuilder.pm	2004-05-06 17:50:26.000000000 +0400
@@ -650,7 +650,14 @@
         # we're doing an IS or IS NOT (null), don't quote the operator.
 
         if ( $args{'QUOTEVALUE'} && $args{'OPERATOR'} !~ /IS/ ) {
-            $args{'VALUE'} = $self->_Handle->dbh->quote( $args{'VALUE'} );
+            my $tmp = $self->_Handle->dbh->quote( $args{'VALUE'} );
+            if ($] >= 5.006) {
+	        require Encode;
+	        if( Encode::is_utf8( $args{'VALUE'} ) ) {
+	            Encode::_utf8_on( $tmp );
+	        }
+            }
+	    $args{'VALUE'} = $tmp;
         }
     }
 
