Context-aware implementation of explode().