fixed low_bound function in utf8 handling