CharsetConverter rework - part 04

This is a (hopefully) final part of CharsetConverter rework.

This part is FriBiDi related. BiDi wrapper function was simplified, optimized and fixed.
Less charset conversions with FriBiDi.
Some cosmetics and cleanup are included.