Add a variant on parenthetical_split() to helper.lua and use it to fix bug #20401.

If no problems are found with this approach, I can backport it to stable.


git-svn-id: http://svn.gna.org/svn/wesnoth/trunk@56023 75b3775d-3801-0410-9e12-e2e43121521d