oslib: strip trailing '\n' from error_setg() string argument