Add mbstring detection

is it not only for tests?