Fix when mbstring overloading is enabled