Fix crashbug for naughty webservers who ignore the RFC