Fixed utf8sub string return when i is really big or j is really small