new utility function `rfind_utf8_leading_byte_index()`