String split with invalid encoded string should raise ArgumentError

Added the Spec for String split with invalid string should raise a ArgumentError
Added glob_split to handle encoding issues with Dir.glob and Dir.[] methods