Add back compatibility to functions in case mb_string is disabled

Signed-off-by: Shitiz Garg <mail@dragooon.net>