Added some functions specific for utf8 and utf32 in order to support different characters.
@johntyner @sam-transeo