add random access in memory data structure for utf8 coded data