Escape regular expression character in split
(cherry picked from commit f6b9f28b8c08d1200677fcabd76db58897c72290)