Fix content-length on IE8

I noticed that some send requests were failing on IE8 (socks using xhr, rabbitmq webstomp) and when failing content-length was set to -1. The result from split() was an empty list, while working ok in IE9+. Changing split for a global match solved it.