Moved split method to splitter1.8 & 1.9, raise for invalid string encoding in 1.9