Replace mb_ functions with JString ones.