Added a set of fallback functions should the "mbstring" extension not be loaded.