Fixed body string initialization code (0 byte for empty strings)
Also fixed same code in filesystem module

https://github.com/ariya/phantomjs/issues/10158
Merge branch 'resource_body' into sl-main