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