removed dependency on mb_string [Closes #22]