Making split unicode correct

Also marked as safe, but not pure (because of the foreach body)