message: Make fromString() more robust
diff: @@ -88,7 +88,7 @@ inline T fromString(const std::string & s) {
  std::istringstream iss(s);
  iss >> result;
  - if (iss.peek() != EOF)
  + if (iss.peek() != EOF || !iss)
  throw std::runtime_error("bad lexical cast");
  return result;
  