add BatSubstring.unsafe_substring injection function for performance reasons
a benchmark for [replace] and [nreplace] implementations