Bypass node http bug in writeHead

Closes #681