#335 Reverted all recent changes in Util.split
and added documentation and unit tests for the current implementation.