Updated unicode bidi functions