Work around winston logging and server responding quirks

* Stop using multiple parameters for logging, because it may print
  a string as an array of characters
* Make the server error reporting more robust against unexpected results