Handle crash caused by object with spaces in name

Object with spaces in the name returns

HTTP/1.1 505 HTTP Version Not Supported

with empty body causing error xml parser to crash.